package com.fetch;

import java.util.ArrayList;
import java.util.List;

import org.apache.http.NameValuePair;
import org.apache.http.message.BasicNameValuePair;

import com.dstats.Constants;

public class FetchHeroes extends Fetch{
	public static final String url = "https://api.steampowered.com/IEconDOTA2_570/GetHeroes/v0001/";
	private String language;
	public FetchHeroes(String language){
		this.language = language;
	}
	@Override
	protected List<NameValuePair> getParams() {
		List<NameValuePair> params = new ArrayList<NameValuePair>();
		params.add(new BasicNameValuePair(Constants.KEY, Constants.apiKey));
		params.add(new BasicNameValuePair(Constants.LANGUAGE, language));
		return params;
	}

	@Override
	protected String getUrl() {			
		return url;
	}
	
}
